class Subject
  include Mongoid::Document
  field :name, type: String
  field :credit_hours, type: Integer

  scope :greater_than, where(:credit_hours.gt => 2)
end
